package com.hskn.hss.module.userdepart.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hskn.hss.entity.AjaxResult;
import com.hskn.hss.exception.HssException;
import com.hskn.hss.module.depart.entity.SysDepart;
import com.hskn.hss.module.userdepart.entity.SysUserDepart;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author hskn
 * @since 2021-04-30
 */
public interface ISysUserDepartService extends IService<SysUserDepart> {
    AjaxResult insert(JSONObject params) throws HssException;

    AjaxResult deleteByid(JSONObject params) throws HssException;

    void deleteByUid(String uid) throws HssException;

    AjaxResult update(JSONObject params) throws HssException;

    AjaxResult updateByUserid(String uid, String did) throws HssException;

    SysUserDepart getInfoById(JSONObject params) throws HssException;

    String getDeptidByUid(String uid);

    List<SysUserDepart> getListByMap(JSONObject params) throws HssException;

    SysDepart getDeptByUid(String uid) throws HssException;

    Map<String,SysUserDepart> getUserDepart();
}
